//
//  SelectedButton.m
//  Utils
//
//  Created by enghou on 2018/4/11.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

#import "SelectedButton.h"

@implementation SelectedButton

-(void)setSelectedImage:(UIImage *)selectedImage{
    [self setImage:selectedImage forState:UIControlStateSelected];
}

-(void)setUnSelectedImage:(UIImage *)unSelectedImage{
    [self setImage:unSelectedImage forState:UIControlStateNormal];
}

-(void)setCornerRaidus:(CGFloat)cornerRaidus{
    self.layer.cornerRadius = cornerRaidus;
}

-(void)setBorderColor:(UIColor *)borderColor{
    self.layer.borderColor = [borderColor CGColor];
}

@end
